﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Common.Utilities.Dispatcher;

namespace Workflows.Components.SchemaUtil
{
    [Serializable]
    public class CLRScripterOutput:ResultBase
    {
        #region props
        private string _SQL;
        /// <summary></summary>
        public string SQL
        {
            get
            {
                return this._SQL;
            }
            set
            {
                this._SQL = value;
            }
        }
        #endregion

        #region ctor
        /// <summary>
        /// 
        /// </summary>
        /// <param name="componentID"></param>
        /// <param name="jobTicketID"></param>
        public CLRScripterOutput(Guid componentID, Guid jobTicketID)
            : base(componentID, jobTicketID)
        {
            this._SQL = string.Empty;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="componentID"></param>
        /// <param name="jobTicketID"></param>
        /// <param name="sql"></param>
        public CLRScripterOutput(Guid componentID, Guid jobTicketID, string sql) : base(componentID, jobTicketID)
        {
            this._SQL = sql;
        }
        #endregion

        #region Overrides of ResultBase

        /// <summary>
        /// 
        /// </summary>
        /// <param name="xDoc"></param>
        /// <param name="parentNode"></param>
        /// <returns></returns>
        public override XmlNode Serialize(ref XmlDocument xDoc, ref XmlNode parentNode)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="xNode"></param>
        /// <returns></returns>
        public override ResultBase Instantiate(XmlNode xNode)
        {
            throw new System.NotImplementedException();
        }

        #endregion
    }
}
